from rest_framework.serializers import ModelSerializer
from .models import User, ThirdParty, Identity


class UserSer(ModelSerializer):
    class Meta:
        model = User
        fields = '__all__'


class Third(ModelSerializer):
    class Meta:
        model = ThirdParty
        fields = ['types', 'uid', 'token', 'userid']


class IdentitySer(ModelSerializer):
    class Meta:
        model = Identity
        fields = '__all__'


